.class public abstract Lcom/instagram/android/service/v;
.super Ljava/lang/Object;
.source "UserServiceHelper.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 20
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 70
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/service/v;)V
    .locals 0
    .parameter

    .prologue
    .line 20
    invoke-direct {p0}, Lcom/instagram/android/service/v;->e()V

    return-void
.end method

.method private b(Landroid/content/Context;)V
    .locals 1
    .parameter

    .prologue
    .line 35
    invoke-direct {p0}, Lcom/instagram/android/service/v;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 37
    invoke-direct {p0, p1}, Lcom/instagram/android/service/v;->c(Landroid/content/Context;)V

    .line 41
    :goto_0
    return-void

    .line 39
    :cond_0
    invoke-direct {p0}, Lcom/instagram/android/service/v;->e()V

    goto :goto_0
.end method

.method private c(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 65
    invoke-virtual {p0}, Lcom/instagram/android/service/v;->d()Lcom/instagram/android/d/k/a;

    move-result-object v0

    invoke-static {p1, v0}, Lcom/instagram/android/d/k/v;->a(Landroid/content/Context;Lcom/instagram/android/d/k/d;)Lcom/instagram/android/d/k/h;

    move-result-object v0

    .line 67
    new-instance v1, Lcom/instagram/android/service/x;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/instagram/android/service/x;-><init>(Lcom/instagram/android/service/v;Lcom/instagram/android/service/w;)V

    invoke-virtual {v1, p1, v0}, Lcom/instagram/android/service/x;->a(Landroid/content/Context;Lcom/instagram/android/d/k/h;)V

    .line 68
    return-void
.end method

.method private c()Z
    .locals 4

    .prologue
    .line 44
    invoke-virtual {p0}, Lcom/instagram/android/service/v;->f()J

    move-result-wide v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    cmp-long v0, v0, v2

    if-gez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private e()V
    .locals 3

    .prologue
    .line 56
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/instagram/android/service/v;->a(Z)V

    .line 58
    :try_start_0
    invoke-virtual {p0}, Lcom/instagram/android/service/v;->a()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 62
    :goto_0
    return-void

    .line 59
    :catch_0
    move-exception v0

    .line 60
    const-class v1, Lcom/instagram/android/service/v;

    const-string v2, "error deserializing users"

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method


# virtual methods
.method abstract a()V
.end method

.method public a(Landroid/content/Context;)V
    .locals 2
    .parameter

    .prologue
    .line 26
    :try_start_0
    invoke-direct {p0, p1}, Lcom/instagram/android/service/v;->b(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 32
    :goto_0
    return-void

    .line 27
    :catch_0
    move-exception v0

    .line 28
    const-string v0, "UserServiceHelper"

    const-string v1, "An IOException occured reading from disk"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 29
    :catch_1
    move-exception v0

    .line 30
    const-string v0, "UserServiceHelper"

    const-string v1, "An exception occurred fetching users"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method abstract a(Ljava/util/List;)V
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;)V"
        }
    .end annotation
.end method

.method public abstract a(Z)V
.end method

.method abstract b()Landroid/content/SharedPreferences;
.end method

.method public b(J)V
    .locals 2
    .parameter

    .prologue
    .line 48
    invoke-virtual {p0}, Lcom/instagram/android/service/v;->b()Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "EXPIRES_DATE"

    invoke-interface {v0, v1, p1, p2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 49
    return-void
.end method

.method abstract d()Lcom/instagram/android/d/k/a;
.end method

.method public f()J
    .locals 4

    .prologue
    .line 52
    invoke-virtual {p0}, Lcom/instagram/android/service/v;->b()Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "EXPIRES_DATE"

    const-wide/16 v2, -0x1

    invoke-interface {v0, v1, v2, v3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v0

    return-wide v0
.end method
